void key_press(int key)
None
This function handles keyboard input to the console. It must be called with all pressed keys when console is on.